const mongoose = require('mongoose');

// 创建schema
const cateSchema = new mongoose.Schema({
    cateName:{
        type: String,
        required: true
    },  
    cateIcon: String,  
    cateDesc: String,  
    pid:{
        type: String,
        default: 0 // 0代表 顶层分类
    }  
})

// 创建model
const cateModel = mongoose.model("qf_cates", cateSchema);

module.exports = cateModel;